{include file="Index/header" /}
 
<body>
<div class="formbody">
<div class="formtitle"><span>文章列表</span></div> 
	<form action="{:url('Article/index')}" method="post">
		<ul class="seachform">
			<li><label>文章标题</label>
				<input name="title" type="text" class="scinput" value="{$title}"/>&nbsp;&nbsp; 
			</li>
			<li><label>文章分类</label>
				<select name="category_id" class="form-select">
					<option value="0">全部</option>
					
					{volist name="categoryArr" id="vo" key="k" } 
					<option {if $key==$category_id} selected {/if} value="{$key}">{$vo}</option>
					{/volist}
					 
				</select>
			</li>
			
			 
			
			<li><label>&nbsp;</label>
				<input name="query" type="submit" class="scbtn" value="查询" />
			</li>
		</ul>
	</form>

	<table class="tablelist" >
		<thead>
			<tr>
				<th>编号</th>
				<th>文章标题</th>
				<th>文章分类</th> 
				<th>是否展示</th>  
				<th>是否置顶</th>  
				<th>点击量</th> 
				<th width="130">发布时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		 	{volist name="listArr" id="vo" key="k" } 
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.title}</td>
				<td>{$categoryArr[$vo['category_id']]}</td> 
			 
				<td>
					{if $vo[is_show]=="1"}
					<b><font color=green>显示</font></b>
					{else /}
					<b><font color=grey>隐藏</font></b>
					{/if}
				</td> 
				<td>
					 
					{if $vo[is_top]=="1"}
					<b><font color=red>置顶</font></b>
					{else /}
					<b><font color=grey>无</font></b>
					{/if}
				
				</td>
				<td>{$vo.views}</td>
				<td>{:date("Y-m-d",$vo[on_time]);}</td>
				
				
				<td>
					 
					<a href="{:url('Article/add', array('aid'=>$vo[id]))}" class="tablelink">编辑</a>
					 <a href="{:url('Article/delete', array('aid'=>$vo[id]))}" class="tablelink">删除</a>
				</td> 
			 
			</tr>
		 	{/volist}
		</tbody>
	</table>
	<div class="page">
					{$pages}
	</div>
 
</div>

{include file="Index/footer" /}